<?php if (!defined('THINK_PATH')) exit();?><html>

	<head>
		<title>后台</title>
		<meta charset="utf-8">
		<!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	</head>

	<body style="background-color: #EEEEEE;">
		<div class="container">
			<div class="row" style="margin-top: 100px;border-style: solid;border-width: 1px;">
				<div class="col-sm-4" style="border-right-style: solid;border-width: 1px;height: 400px;">

					<form class="form-horizontal" method="post" action="<?php echo U('admin/create_bonus');?>">
						<h2>创建红包</h2>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-4 control-label">红包金额</label>
							<div class="col-sm-8">
								<input type="text" name="money" class="form-control" id="inputEmail3" placeholder="要创建的红包金额">
							</div>
						</div>
						<div class="form-group">
							<label for="inputPassword3" class="col-sm-4 control-label">红包数量</label>
							<div class="col-sm-8">
								<input type="text" name="count" class="form-control" id="inputPassword3" placeholder="要发放的红包数量">
							</div>
						</div>
						<div class="form-group">
							<label for="inputEmail3" class="col-sm-4 control-label">随机三位数</label>
							<div class="col-sm-8">
								<input type="text" name="rand" class="form-control" id="inputEmail3" placeholder="随机填写三位数">
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-2 col-sm-10">

							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-4 col-sm-4">
								<button type="submit" class="btn btn-default">创建</button>
							</div>
							<div class="col-sm-4">
								<button type="submit" class="btn btn-default" onclick="window.location.reload();">刷新</button>
							</div>
						</div>
					</form>

				</div>
				<div class="col-sm-8" style=" height:400px; overflow:scroll; overflow-x:hidden;">
					<table class="table table-condensed">
						<thead>
							<tr>
								<th>
									编号
								</th>
								<th>
									金额
								</th>
								<th>
									编码
								</th>
								
							</tr>
						</thead>

						<tbody>
							<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
								<td>
									<?php echo ($vo['id']); ?>
								</td>
								<td>
									<?php echo ($vo['money']); ?>
								</td>
								<td>
									<?php echo ($vo['code']); ?>
								</td>
							
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>
						</tbody>

					</table>
				</div>
			</div>
		</div>
	</body>

</html>